<?php
echo '<div class="groupmenu">';
    echo '<h4>'.$parent1['title'].'</h4>';
    if($parent1['segment'] == 'our-publications' || $parent1['segment'] == 'mfplus')
    {
        echo '<dl>';
        foreach($groupmenu as $key =>$item)
        {
            $items = $this->MPage->getRelatedArticles($item['page_id']);
            echo '<dt>'.anchor('page/'.$item['segment'],$item['title']).'</dt>';            
            foreach($items as $key =>$article)
            {
                echo '<dd>'.anchor('page/'.$article['segment'],$article['title']).'</dd>';
            }
        }
         echo '</dl>';
    }
    else
    {
        //echo '<h4>'.$parent1['title'].'</h4>';
        echo '<ul>';
        foreach($groupmenu as $key =>$item)
        {
            echo '<li>'.anchor('page/'.$item['segment'],$item['title']).'</li>';
        }
        echo '</ul>';
    }
echo '</div>';    
?>